<template>
  <div class="pagetool">
    <el-card>
      <el-row type="flex">
        <el-col>
          <div v-if="showbefor" class="before">
            <i class="el-icon-info" />
            <slot name="before">
              <span>本月:社保在缴 公积金在缴 增员 减员 入职 离职</span>
            </slot>
          </div>
        </el-col>
        <el-col>
          <div class="after">
            <slot name="after">
              <el-button type="primary" size="mini">导入</el-button>
              <el-button type="primary" size="mini"><i class="el-icon-plus" />新增员工</el-button>
            </slot>
          </div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Pagetools',
  data() {
    return {
      showbefor: false
    }
  }
}
</script>

<style lang="scss">
.pagetool{
    margin-top: 20px;
    .before{
        border:1px solid #91d5ff;
        font-size:14px;
        padding: 8px;
        display: inline-block;
        background-color: #e6f7ff;
        i{
              color:#409eff;
            margin-right: 10px;
        }
    }
    .after{
        text-align: right;
    }
}
</style>
